package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.WarehousingEntryDetails;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface WarehousingEntryDetailsMapper extends BaseMapper<WarehousingEntryDetails> {

    /**
     * 批量插入入库明细
     * @param detailsList 明细列表
     * @return 插入记录数
     */
    @InsertProvider(type = WarehousingEntryDetailsSqlProvider.class, method = "insertBatchSomeColumn")
    int insertBatchSomeColumn(List<WarehousingEntryDetails> detailsList);
}
